WOLF core
WOLF: A Modular Estimation Framework for Robotics
XXXXXXXXXXXXXXXXXXXXXXXXvoid(0)" frameborder="0" name="MSearchResults" id="MSearchResults">
graph_search.h
Go to the documentation of this file.
1// WOLF - Copyright (C) 2020-2026
2// Institut de Robòtica i Informàtica Industrial, CSIC-UPC.
3// Authors: Joan Solà Ortega (jsola@iri.upc.edu) and
4// Joan Vallvé Navarro (jvallve@iri.upc.edu)
5// All rights reserved.
6//
7// This file is part of WOLF: http://www.iri.upc.edu/wolf
8// WOLF is free software: you can redistribute it and/or modify
9// it under the terms of the GNU General Public License version 3
10// as published by the Free Software Foundation.
11//
12// This program is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15// GNU General Public License for more details.
16//
17// You should have received a copy of the GNU General Public License
18// along with this program. If not, see <http://www.gnu.org/licenses/>.
19#pragma once
20
21#include "core/common/wolf.h"
24
25#include <map>
26
27namespace wolf
28{
30{
31 private:
32 std::map<NodeStateBlocksPtr, std::pair<FactorBasePtr, NodeStateBlocksPtr>> parents_;
33
34 public:
36
38
39 FactorBasePtrList computeShortestPath(NodeStateBlocksPtr node1,
40 NodeStateBlocksPtr node2,
41 const unsigned int max_graph_dist = 0);
42
43 std::set<NodeStateBlocksPtr> getNeighborFrames(const std::set<NodeStateBlocksPtr>& nodes);
44
45 static FactorBasePtrList shortestPath(NodeStateBlocksPtr node1,
46 NodeStateBlocksPtr node2,
47 const unsigned int max_graph_dist = 0)
48 {
49 GraphSearch graph_search;
50
51 return graph_search.computeShortestPath(node1, node2, max_graph_dist);
52 }
53};
54
55} // namespace wolf
Definition: graph_search.h:30
static FactorBasePtrList shortestPath(NodeStateBlocksPtr node1, NodeStateBlocksPtr node2, const unsigned int max_graph_dist=0)
Definition: graph_search.h:45
FactorBasePtrList computeShortestPath(NodeStateBlocksPtr node1, NodeStateBlocksPtr node2, const unsigned int max_graph_dist=0)
Definition: graph_search.cpp:27
std::set< NodeStateBlocksPtr > getNeighborFrames(const std::set< NodeStateBlocksPtr > &nodes)
Definition: graph_search.cpp:70
~GraphSearch()
Definition: graph_search.cpp:25
GraphSearch()
Definition: graph_search.cpp:23
Definition: capture_base.h:23